package io.itit.ecp.admin.common.enums;

import io.itit.grass.common.enums.IBaseEnum;

import java.io.Serializable;

/**
 * <p>
 *
 * @Author：Roy
 * @Description：设备管理
 * @Date：Create by 2023-11-30 18:51:39
 */
public interface IDeviceEnums {

	/* 设备类型(1:物联网设备,2:非物联网设备) */
	enum DeviceType implements IBaseEnum {
		deviceType1("1", "物联网设备"),
		deviceType2("2", "非物联网设备");

		public final String deviceType;
		public final String desc;

		DeviceType(String deviceType, String desc) {
			this.deviceType = deviceType;
			this.desc = desc;
		}

		@Override
		public Serializable getValue() {
			return deviceType;
		}

		@Override
		public String getDesc() {
			return desc;
		}
	}

	/* 是否重点关注设备(1:重点关注设备,2:非重点关注设备) */
	enum IsFocus implements IBaseEnum {
		isFocus1("1", "重点关注设备"),
		isFocus2("2", "非重点关注设备");

		public final String isFocus;
		public final String desc;

		IsFocus(String isFocus, String desc) {
			this.isFocus = isFocus;
			this.desc = desc;
		}

		@Override
		public Serializable getValue() {
			return isFocus;
		}

		@Override
		public String getDesc() {
			return desc;
		}
	}

	/* 当前状态(1:在线,2:离线) */
	enum DeviceStatus implements IBaseEnum {
		deviceStatus1("1", "在线"),
		deviceStatus2("2", "离线");

		public final String deviceStatus;
		public final String desc;

		DeviceStatus(String deviceStatus, String desc) {
			this.deviceStatus = deviceStatus;
			this.desc = desc;
		}

		@Override
		public Serializable getValue() {
			return deviceStatus;
		}

		@Override
		public String getDesc() {
			return desc;
		}
	}

}
